package demo1103.demo02;



/**
 * @author JYH
 * @version 1.0
 * @date 2022/11/3 9:54
 */
public class TestVoid {
    public static void main(String[] args) {
        People p1=()->{
            System.out.println("人要吃饭");
        };

        live(p1);
    }
    public static void live(People people){
        people.eat();
    }
}
interface People{
    void eat();
}